<!--{include manage_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="/manage/news/index.php">新闻设置</a></li>
    <li><a href="/manage/news/index.php">编辑扩展</a></li>
	<li style="float:right;  font-size:22px; ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8;">
    <!--{if $_SESSION['ali_token']}-->${mb_strimwidth($login_user['realname'],0,10)}<!--{else}-->${mb_strimwidth($login_user['username'],0,10)}<!--{/if}-->
	</a> </li>
    </ul>
</div>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="leader">
	<!--<div class="dashboard" id="dashboard">
		<ul>${mcurrent_news('news')}</ul>
	</div>-->
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
				<!--{if $news['id']}-->
					<div class="formtitle" style="padding-left:6px;"><span>编辑扩展</span></div>
					<!--<ul class="filter">${current_managenews('edit', $news['id'])}</ul>-->
				<!--{else}-->
					<div class="formtitle" style="padding-left:6px;"><span>新建扩展</span></div>
				<!--{/if}-->
				</div>
                <div class="sect">
				<form id="-user-form" method="post" action="/manage/news/edit.php?id={$news['id']}" enctype="multipart/form-data" class="validator">
					<input type="hidden" name="id" value="{$news['id']}" />
					<div class="field">
						<label>扩展工具名称</label>
						<input type="text" size="30" name="title" id="team-create-title" class="f-input" value="${htmlspecialchars($news['title'])}" datatype="require" require="true" />
					</div>
						<div class="field">
							<label>小图片图片</label>
							<input type="file" size="30" name="upload_image" id="team-create-image" class="f-input f-hint" />
							<!--{if $news['image']}--><span class="hint">${team_image($news['image'])}</span><!--{/if}-->
						</div>
							<div class="field">
						<label>连接网址</label>
						<input type="text" size="30" name="detail" id="team-create-title" class="f-input" value="${htmlspecialchars($news['detail'])}" datatype="require" require="true" />
				<span class="hint">请填写绝对地址，例如http://m.baidu.com</span>
					</div>
						<div class="field">
						<label>排序</label>
						<input type="text" size="10" name="tuijian" id="team-create-sort_order" class="number" value="${$news['tuijian'] ? $news['tuijian'] : 0}" datatype="number"/><span class="inputtip">请填写数字，数值大到小排序，主推团购应设置较大值</span>
					</div>
					<input name="type" type="hidden" id="id" value="100000" />
					<input name="begin_time" type="hidden" id="id" value="${date('Y-m-d H:i:s', $news['begin_time'])}" />
					
                    <div class="field">
					<input type="submit" value="提交" name="commit" id="leader-submit" class="formbutton" style="margin:10px 0 0 120px;"/>
                    </div>
				</form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->
<script type="text/javascript">
window.x_init_hook_teamchangetype = function(){
	X.team.changetype("{$team['team_type']}");
};
window.x_init_hook_page = function() {
	X.team.imageremovecall = function(v) {
		jQuery('#team_image_'+v).remove();
	};
	X.team.imageremove = function(id, v) {
		return !X.get(WEB_ROOT + '/ajax/misc.php?action=imageremove&id='+id+'&v='+v);
	};
};
</script>
<!--{include manage_footer}-->
